package com.hutianao.gqgl.dictionary.respository;

import com.hutianao.gqgl.mybatis.entity.PtDictionaryEntity;
import com.hutianao.gqgl.mybatis.entity.PtDictionaryI18n;
import com.hutianao.gqgl.mybatis.ztree.ZtreeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DictionaryDao {
    List<ZtreeEntity> queryLeftTree();

    PtDictionaryEntity queryDictionaryListById(@Param("dictionaryId") String dictionaryId);

    List<PtDictionaryI18n> getI18nByDictionaryId(String dictionaryId);

    void deleteDictionaryI18nById(@Param("dictId")String dictId,@Param("languageId") String languageId);

    void insertDictionaryI18n(@Param("entity")PtDictionaryI18n ptDictionaryI18n);

    void updateDictionaryI18n(@Param("entity")PtDictionaryI18n ptDictionaryI18n);

    List<PtDictionaryI18n> queryDictionaryI18n(@Param("entity")PtDictionaryI18n ptDictionaryI18n);

    void addDictionaryInfo(PtDictionaryEntity ptDictionaryEntity);

    void deleteDictionaryInfoByDictionaryId(String dictId);
//shen
    void updateDictionaryInfo(@Param("entity")PtDictionaryEntity ptDictionaryEntity);
}
